package cate.game.role.bag.prop.msg;

import cate.common.annotation.OperationSetter;
import cate.common.table.d.GDOperation;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBBag;
import cate.game.role.bag.vo.TidNumVO;
import easy.java.dev.note.NoteField;

import java.util.List;

@ClientMsg(title = "道具出售 の 请求")
@OperationSetter(value = GDOperation.PROP_SELL)
public class PropSellReq implements MsgInput {
    @NoteField("道具id")
    public List<TidNumVO> items;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getBag().prop.sellProps(items);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBBag.PROP_SELL_REQ;
    }
}
